package com.nimbusung;

import com.nimbusung.domain.MobileArrayAdapter;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.Toast;
 
public class SettingsListActivity extends ListActivity {
    
	static final String[] LIST = { "Information om applikationen" }; 
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setListAdapter(new MobileArrayAdapter(this, LIST));
        
    }
	
	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
 
		//get selected items
		String selectedValue = (String) getListAdapter().getItem(position);
		Toast.makeText(this, selectedValue, Toast.LENGTH_SHORT).show();
			
	}
}